package com.wetalk.controller;

import com.wetalk.pojo.Response;
import com.wetalk.service.AuthService;
import com.wetalk.service.impl.AuthImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * @author lijiaxing 2025-7-5
 */
@RestController
@RequestMapping("/auth")
public class AuthController {
    @Autowired
    private AuthImpl authImpl;
    @GetMapping("/regist")
    public String HelloController() {
        return "hello";
    }
    @GetMapping("/sendEmail")
    public Response sendEmail(String email) {
       authImpl.sendEmail(email);
       return Response.success(null);
    }
}
